<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj ={
            name:'Ro9nin',
            getName:function(...args){
                console.log(args);
                console.log(this.name);
            }
        }
        let obj2 ={
            name:'Ro9n1n',
        }
        obj.getName()
        obj.getName.call(obj2,1,2)
        obj.getName.apply(obj2,[1,2])

        let func = obj.getName
        // 未来执行
        func.bind(obj2)()
    </script>
</body>
</html>